ostree-run-triggers: fix typo in filename comparison function
authorGiovanni Campagna <gcampagna@src.gnome.org>
Fri, 17 Aug 2012 15:13:01 +0000 (17:13 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 20 Aug 2012 21:01:57 +0000 (23:01 +0200)
The comparison function was comparing the first file to itself,
and this resulted in triggers being run in random order.

https://bugzilla.gnome.org/show_bug.cgi?id=682297

src/triggers/ostree-run-triggers.c

index 472ca962a2507a9d72839f5a190f654618c400ca..4ac1f1c9b794ff8075f87ec8c33e0a581bc2b9e8 100644 (file)
@@ -76,7 +76,7 @@ compare_files_by_basename (gconstpointer  ap,
                            gconstpointer  bp)
 {
   GFile *a = *(GFile**)ap;
-  GFile *b = *(GFile**)ap;
+  GFile *b = *(GFile**)bp;
   char *name_a, *name_b;
   int c;